\hypertarget{class_q_qt_double_click_helper}{}\section{Q\+Qt\+Double\+Click\+Helper Class Reference}
\label{class_q_qt_double_click_helper}\index{Q\+Qt\+Double\+Click\+Helper@{Q\+Qt\+Double\+Click\+Helper}}


The \mbox{\hyperlink{class_q_qt_double_click_helper}{Q\+Qt\+Double\+Click\+Helper}} class.  




{\ttfamily \#include $<$qqtdoubleclickhelper.\+h$>$}

Inheritance diagram for Q\+Qt\+Double\+Click\+Helper\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=6.000000cm]{class_q_qt_double_click_helper}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{DoxyCompactItemize}
\item 
void \mbox{\hyperlink{class_q_qt_double_click_helper_ab6526188b90a5466131f40aaad633cd0}{slot\+Click\+Timeout}} ()
\item 
\mbox{\Hypertarget{class_q_qt_double_click_helper_a1b80a8c9ac0b45841789a5656d6431b8}\label{class_q_qt_double_click_helper_a1b80a8c9ac0b45841789a5656d6431b8}} 
void {\bfseries slot\+Long\+Click\+Timeout} ()
\item 
\mbox{\Hypertarget{class_q_qt_double_click_helper_a29307886d3f770d852d20bf936b58485}\label{class_q_qt_double_click_helper_a29307886d3f770d852d20bf936b58485}} 
void {\bfseries slot\+Double\+Click\+Timeout} ()
\end{DoxyCompactItemize}
\subsection*{Signals}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_q_qt_double_click_helper_a5422dada7d29d100a4c12b6ea4daf171}\label{class_q_qt_double_click_helper_a5422dada7d29d100a4c12b6ea4daf171}} 
void {\bfseries double\+Click} ()
\item 
\mbox{\Hypertarget{class_q_qt_double_click_helper_a12f6bb662d2dbe55b6350de7d0005754}\label{class_q_qt_double_click_helper_a12f6bb662d2dbe55b6350de7d0005754}} 
void {\bfseries double\+Click\+With\+Point} (Q\+Point point)
\item 
\mbox{\Hypertarget{class_q_qt_double_click_helper_af85935b407b5f020a7eb295ff5641c3c}\label{class_q_qt_double_click_helper_af85935b407b5f020a7eb295ff5641c3c}} 
void {\bfseries double\+Click\+With\+PointF} (Q\+PointF point)
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_q_qt_double_click_helper_a4b6c5165eb9f5281977b1f5c078cf95a}\label{class_q_qt_double_click_helper_a4b6c5165eb9f5281977b1f5c078cf95a}} 
{\bfseries Q\+Qt\+Double\+Click\+Helper} (Q\+Object $\ast$parent=0)
\item 
\mbox{\Hypertarget{class_q_qt_double_click_helper_a71f5418c7b5670f5ab1383b867afbb0e}\label{class_q_qt_double_click_helper_a71f5418c7b5670f5ab1383b867afbb0e}} 
virtual void {\bfseries mouse\+Press\+Event} (Q\+Mouse\+Event $\ast$event, Q\+Widget $\ast$user\+Widget=0) override
\item 
\mbox{\Hypertarget{class_q_qt_double_click_helper_af35e7a04d3609aacb0f1ba86ae373676}\label{class_q_qt_double_click_helper_af35e7a04d3609aacb0f1ba86ae373676}} 
virtual void {\bfseries mouse\+Release\+Event} (Q\+Mouse\+Event $\ast$event, Q\+Widget $\ast$user\+Widget=0) override
\item 
\mbox{\Hypertarget{class_q_qt_double_click_helper_a549d190300075033028027081256e829}\label{class_q_qt_double_click_helper_a549d190300075033028027081256e829}} 
virtual void {\bfseries mouse\+Double\+Click\+Event} (Q\+Mouse\+Event $\ast$event, Q\+Widget $\ast$user\+Widget=0) override
\item 
\mbox{\Hypertarget{class_q_qt_double_click_helper_a5cac7e0d79fa80a9c2854739609fd59c}\label{class_q_qt_double_click_helper_a5cac7e0d79fa80a9c2854739609fd59c}} 
void {\bfseries set\+Double\+Click\+Interval} (int mill\+Second=double\+Click\+Interval)
\item 
\mbox{\Hypertarget{class_q_qt_double_click_helper_ac47e02089d14b70cac7c4001e6ca5f00}\label{class_q_qt_double_click_helper_ac47e02089d14b70cac7c4001e6ca5f00}} 
int {\bfseries get\+Double\+Click\+Interval} () const
\item 
\mbox{\Hypertarget{class_q_qt_double_click_helper_a755f823d1506112bc8e67384710200a8}\label{class_q_qt_double_click_helper_a755f823d1506112bc8e67384710200a8}} 
const quint32 {\bfseries double\+Click\+Num} () const
\item 
\mbox{\Hypertarget{class_q_qt_double_click_helper_aa23450247c4cc6e3aec9ef028fc3f027}\label{class_q_qt_double_click_helper_aa23450247c4cc6e3aec9ef028fc3f027}} 
const quint32 {\bfseries double\+Click\+Num\+With\+Cancel} () const
\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_q_qt_double_click_helper_a3baa11d7bfb12cd84d3b821d78e9b778}\label{class_q_qt_double_click_helper_a3baa11d7bfb12cd84d3b821d78e9b778}} 
virtual void {\bfseries check\+Click\+Num} (\mbox{\hyperlink{class_q_qt_virtual_click_helper_ace6c0c9b072e51f2cb3ff1316404b764}{Q\+Qt\+Click\+Type}} type) override
\item 
virtual void \mbox{\hyperlink{class_q_qt_double_click_helper_a42ab28dcfaf01d7e8bf8bb01bd5ca311}{check\+Click\+Num\+With\+Cancel}} () override
\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_q_qt_double_click_helper_a05bbcfbc94d3f1f96c292dfc22ac65d7}\label{class_q_qt_double_click_helper_a05bbcfbc94d3f1f96c292dfc22ac65d7}} 
Q\+Timer $\ast$ {\bfseries m\+\_\+click\+\_\+timer}
\item 
\mbox{\Hypertarget{class_q_qt_double_click_helper_a18de19168c2267270857d02b02a3287a}\label{class_q_qt_double_click_helper_a18de19168c2267270857d02b02a3287a}} 
Q\+Timer $\ast$ {\bfseries m\+\_\+long\+\_\+click\+\_\+timer}
\item 
\mbox{\Hypertarget{class_q_qt_double_click_helper_a068db2a6ea5cef270fb6d667b11610de}\label{class_q_qt_double_click_helper_a068db2a6ea5cef270fb6d667b11610de}} 
Q\+Timer $\ast$ {\bfseries m\+\_\+double\+\_\+click\+\_\+timer}
\item 
\mbox{\Hypertarget{class_q_qt_double_click_helper_ae65847b4a89b43a82a429ab4659fd0d1}\label{class_q_qt_double_click_helper_ae65847b4a89b43a82a429ab4659fd0d1}} 
int {\bfseries m\+Double\+Click\+Interval}
\item 
\mbox{\Hypertarget{class_q_qt_double_click_helper_a7d5eae2726a9e5bbb2edc463ea03328e}\label{class_q_qt_double_click_helper_a7d5eae2726a9e5bbb2edc463ea03328e}} 
Q\+Time {\bfseries start\+Click\+Time}
\item 
\mbox{\Hypertarget{class_q_qt_double_click_helper_a71b58b2c4b2ea89f0b83c140fb9ad0b3}\label{class_q_qt_double_click_helper_a71b58b2c4b2ea89f0b83c140fb9ad0b3}} 
Q\+Time {\bfseries prev\+\_\+doubleclick}
\item 
\mbox{\Hypertarget{class_q_qt_double_click_helper_a1ddbb773a7acb91a2b1dfe1506dfdb5e}\label{class_q_qt_double_click_helper_a1ddbb773a7acb91a2b1dfe1506dfdb5e}} 
Q\+Time {\bfseries now\+\_\+doubleclick}
\item 
\mbox{\Hypertarget{class_q_qt_double_click_helper_a97cd6c2cd3e34105e50cfd5c486812f6}\label{class_q_qt_double_click_helper_a97cd6c2cd3e34105e50cfd5c486812f6}} 
Q\+Time {\bfseries prev\+\_\+release}
\item 
\mbox{\Hypertarget{class_q_qt_double_click_helper_ad631e7679b6b7b22347c29bd7d3c4d14}\label{class_q_qt_double_click_helper_ad631e7679b6b7b22347c29bd7d3c4d14}} 
Q\+Time {\bfseries now\+\_\+release\+\_\+initial}
\item 
\mbox{\Hypertarget{class_q_qt_double_click_helper_a1682e7178f066dc08fbfae895a2f70f0}\label{class_q_qt_double_click_helper_a1682e7178f066dc08fbfae895a2f70f0}} 
Q\+Widget $\ast$ {\bfseries m\+User\+Widget}
\item 
\mbox{\Hypertarget{class_q_qt_double_click_helper_aae9045b910dbf8a774f4f564be4df8f3}\label{class_q_qt_double_click_helper_aae9045b910dbf8a774f4f564be4df8f3}} 
\mbox{\hyperlink{class_q_qt_mouse_event}{Q\+Qt\+Mouse\+Event}} $\ast$ {\bfseries m\+Mouse\+Event}
\item 
\mbox{\Hypertarget{class_q_qt_double_click_helper_a71ad031e61ebb8024d4d436533e7f0ea}\label{class_q_qt_double_click_helper_a71ad031e61ebb8024d4d436533e7f0ea}} 
quint32 {\bfseries n\+Double\+Click\+Num}
\item 
\mbox{\Hypertarget{class_q_qt_double_click_helper_ab661c267e0d25880ec19c0b2a2fbe204}\label{class_q_qt_double_click_helper_ab661c267e0d25880ec19c0b2a2fbe204}} 
quint32 {\bfseries n\+Double\+Click\+Num\+With\+Cancel}
\end{DoxyCompactItemize}
\subsection*{Static Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_q_qt_double_click_helper_ab52658a4538dbe1f6cbada9de7dcbea9}\label{class_q_qt_double_click_helper_ab52658a4538dbe1f6cbada9de7dcbea9}} 
static const int {\bfseries double\+Click\+Interval} = 260
\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
The \mbox{\hyperlink{class_q_qt_double_click_helper}{Q\+Qt\+Double\+Click\+Helper}} class. 

支持 click long\+Click double\+Click

原理 release开始检测. 发现long\+Click只发送long\+Click. 发现click只发送click. 发现double\+Click只发送double\+Click.\+包括\+Qt的和内部的检测都管用. 以最新click为准

行为 release\+Event是核心. 仅仅接收到release,就可以发生单击和双击检测,击发其中一个. 必须被press击发,才会检测发生长击,长击到点,如果没有release也不会发射信号. 仅仅使用press\+Event,不会发生任何情况. 仅仅使用\+Double\+Click\+Event,不会发生任何情况.

Double\+Click检测是独立于系统的,用户可以在页面里实现多套独立的按键时延检测,一个widget一个时延系统也没问题. 

\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_q_qt_double_click_helper_a42ab28dcfaf01d7e8bf8bb01bd5ca311}\label{class_q_qt_double_click_helper_a42ab28dcfaf01d7e8bf8bb01bd5ca311}} 
\index{Q\+Qt\+Double\+Click\+Helper@{Q\+Qt\+Double\+Click\+Helper}!check\+Click\+Num\+With\+Cancel@{check\+Click\+Num\+With\+Cancel}}
\index{check\+Click\+Num\+With\+Cancel@{check\+Click\+Num\+With\+Cancel}!Q\+Qt\+Double\+Click\+Helper@{Q\+Qt\+Double\+Click\+Helper}}
\subsubsection{\texorpdfstring{check\+Click\+Num\+With\+Cancel()}{checkClickNumWithCancel()}}
{\footnotesize\ttfamily void Q\+Qt\+Double\+Click\+Helper\+::check\+Click\+Num\+With\+Cancel (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [protected]}, {\ttfamily [virtual]}}

以下用于内部 

Reimplemented from \mbox{\hyperlink{class_q_qt_long_click_helper_a9cc68a8b81d6ffe142509cdb31db78b1}{Q\+Qt\+Long\+Click\+Helper}}.

\mbox{\Hypertarget{class_q_qt_double_click_helper_ab6526188b90a5466131f40aaad633cd0}\label{class_q_qt_double_click_helper_ab6526188b90a5466131f40aaad633cd0}} 
\index{Q\+Qt\+Double\+Click\+Helper@{Q\+Qt\+Double\+Click\+Helper}!slot\+Click\+Timeout@{slot\+Click\+Timeout}}
\index{slot\+Click\+Timeout@{slot\+Click\+Timeout}!Q\+Qt\+Double\+Click\+Helper@{Q\+Qt\+Double\+Click\+Helper}}
\subsubsection{\texorpdfstring{slot\+Click\+Timeout}{slotClickTimeout}}
{\footnotesize\ttfamily void Q\+Qt\+Double\+Click\+Helper\+::slot\+Click\+Timeout (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [slot]}}

以下用于内部 

The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
R\+:/\+Develop/a0-\/develop/\+Lib\+Q\+Qt/src/exquisite/clickwidgets/qqtdoubleclickhelper.\+h\item 
R\+:/\+Develop/a0-\/develop/\+Lib\+Q\+Qt/src/exquisite/clickwidgets/qqtdoubleclickhelper.\+cpp\end{DoxyCompactItemize}
